<!--jquery and pjax-->
<script src="https://gcore.jsdelivr.net/npm/jquery/dist/jquery.js"></script>
<script src="https://gcore.jsdelivr.net/npm/jquery-pjax/jquery.pjax.js"></script>

<!-- nprogress -->
<script src="https://gcore.jsdelivr.net/npm/nprogress/nprogress.js"></script>
<link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/nprogress/nprogress.css">

<!-- fontawesome -->
<script src="https://gcore.jsdelivr.net/npm/@fortawesome/fontawesome-free/js/fontawesome.js"></script>
<link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.css">

<!-- glidejs -->
<link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/glidejs/dist/css/glide.core.css">
<link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/glidejs/dist/css/glide.theme.css">
<script src="https://gcore.jsdelivr.net/npm/glidejs/dist/glide.js"></script>

<!-- Highlight -->
<link rel="stylesheet" href="https://gcore.jsdelivr.net/gh/highlightjs/cdn-release/build/styles/github-dark.min.css">
<script src="https://gcore.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js"></script>

<!-- and it's easy to individually load additional languages -->
<script src="https://gcore.jsdelivr.net/gh/highlightjs/cdn-release/build/languages/go.min.js"></script>

<script defer>
  document.addEventListener('DOMContentLoaded', function() {
    if (typeof hljs !== 'undefined') {
      hljs.highlightAll();
    }
  });
</script>

<!-- Hls -->
<script src="https://gcore.jsdelivr.net/npm/hls.js/dist/hls.js"></script>

<!-- require APlayer -->
<link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
<script src="https://gcore.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
<style>
.aplayer.aplayer-fixed .aplayer-lrc {
   text-shadow: -1px 1px 0 #000, 1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000 !important;
}
.aplayer .aplayer-lrc p{
   color: white !important;
}
</style>

<!-- require MetingJS -->
{% if site.meting.api %}
<script>
var meting_api='{{site.meting.api}}';
</script>
{% endif %}
<script src="https://gcore.jsdelivr.net/npm/meting/dist/Meting.min.js"></script>

<!-- 一言 -->
<script>
// 一言简单实现
fetch('https://v1.hitokoto.cn')
  .then(response => response.json())
  .then(data => {
    const hitokotoText = document.getElementById('hitokoto_text');
    const hitokotoAuthor = document.getElementById('hitokoto_author');
    if (hitokotoText && hitokotoAuthor) {
      hitokotoText.textContent = data.hitokoto;
      hitokotoAuthor.textContent = data.from ? `——${data.from}` : '';
    }
  })
  .catch(err => {
    console.error('一言获取失败:', err);
    const hitokotoText = document.getElementById('hitokoto_text');
    const hitokotoAuthor = document.getElementById('hitokoto_author');
    if (hitokotoText && hitokotoAuthor) {
      hitokotoText.textContent = '愿你走出半生，归来仍是少年。';
      hitokotoAuthor.textContent = '——网络';
    }
  });
</script>

<!--Animate.css-->
<link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/animate.css/animate.css">

<script src="/js/main.js"></script>
